.alarm-detail {
  .detail-head {
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    background-color: #27435c;
    display: flex;
    flex-direction: column;
    .head-row {
      width: 1900px;
      border-bottom: 1px solid #4e6380;
      height: 30px;
      line-height: 30px;
      padding: 0 10px;
      display: flex;
      flex-wrap: nowrap;
      gap: 10px;
      align-items: center;
      .head-name {
        font-size: 16px;
        color: #fff;
        margin-right: 10px;
        flex: 0 0 auto;
        font-size: 14px;
      }
      .head-col {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        flex: 0 0 auto;
        color: #afc2d5;
        div {
          flex: 0 0 auto;
        }
        .col-label {
          color: #bbb;
        }
      }
    }
  }
  .detail-content {
    display: grid;
    height: calc(100vh - 10vh - 26px - 30px - 102px - 10vh - 50px);
    grid-template-columns: calc(50% - 5px) 10px calc(50% - 5px);
    grid-template-rows: 100%;
    .detail-middle {
      background-color: #27435c;
    }
    .detail-right {
      height: 100%;
      padding: 5px;
      .alarm-card {
        .alarm-card-title {
          color: #eee;
          background-color: #08121a;
          height: 24px;
          line-height: 24px;
          padding: 0 10px;
          border-radius: 3px;
          user-select: none;
        }
      }
      .alarm-card-images {
        height: 50%;
      }
      .alarm-card-video {
        height: 30%;
      }
      .alarm-card-fill-video {
        height: 50%;
      }
      .alarm-card-sound {
        height: 20%;
      }
      .alarm-card-content {
        height: calc(100% - 24px);
        padding: 10px;
      }
      .alarm-card-images-content {
        display: flex;
        flex-wrap: wrap;
        overflow-y: scroll;
        overflow-x: hidden;
        .alarm-images-card {
          overflow: hidden;
          width: 150px;
          height: 80px;
          margin-right: 10px;
          border: 2px solid #72808b;
          background-color: #222124;
          display: flex;
          align-items: center;
          justify-content: center;
          margin: 0 10px 10px 0;
        }
      }
      .alarm-card-video-content {
        width: 100%;
        .alarm-video-table {
          width: 100%;
          height: calc(100% - 10px);
          overflow-x: scroll;
          overflow-y: hidden;
          .alarm-video-head {
            display: flex;
            width: 100%;
            .head-col {
              background-color: #758798;
              color: #fff;
              border-right: 1px solid #aaa;
              height: 26px;
              line-height: 26px;
              text-align: center;
              &:last-of-type {
                border: 0;
              }
            }
          }
          .alarm-video-body {
            height: calc(100% - 25px);
            overflow-y: scroll;
            overflow-x: hidden;
            width: 100%;
            .body-content {
              .body-row {
                display: flex;
                height: 30px;
                line-height: 30px;
                color: #fff;
                .row-item {
                  padding: 0 5px;
                  white-space: nowrap;
                  text-overflow: ellipsis;
                  overflow: hidden;
                  word-break: break-all;
                  cursor: pointer;
                  height: 100%;
                  .opera-col {
                    padding: 0 10px;
                    height: 100%;
                    display: flex;
                    align-items: center;
                    justify-content: space-around;
                    > span {
                      font-size: 20px;
                      color: #a1b1e4;
                      &:hover {
                        color: #b158ff;
                      }
                    }
                  }
                }
              }
            }
          }
        }
        .alarm-message-table {
          height: 100%;
          .alarm-message-body {
            height: 100%;
          }
        }
      }
    }
  }
  .detail-bottom {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    .form-item {
      height: 100%;
      display: flex;
      align-items: center;
      margin-right: 10px;
      color: #eee;
      .form-label {
        color: #eee;
      }
      :deep .ant-checkbox-wrapper {
        color: #eee;
        user-select: none;
      }
    }
    .button-list {
      display: flex;
      .button-item {
        background-color: #1d57a6;
        border-radius: 5px;
        height: 30px;
        padding: 0 15px;
        margin-right: 10px;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 1px 1px 1px #4387ad;
        &:hover {
          box-shadow: 1px 1px 1px #bfd9e7;
        }
        > div {
          margin-left: 5px;
        }
      }
    }
  }
}

/* 为 WebKit 浏览器自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #2f6e90;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

.audio-player {
  width: 0;
  height: 0;
  overflow: hidden;
}
